'use strict';
const path = require('path');
function resolve(dir) {
  return path.join(__dirname, dir);
}

const config = {
  publicPath: process.env.NODE_ENV === 'production' ? 'https://chjxx.gitee.io/app_demo/': '/',
  configureWebpack: {
    resolve: {
      modules: [path.resolve(__dirname, 'node_modules')],
      alias: {
        '@': resolve('src')
      }
    },
    externals: {
      'better-scroll': 'BScroll'
    }
  }
};

module.exports = config;
